/* 
 * File:   mainForm.h
 * Author: hao
 *
 * Created on 2011年5月4日, 上午2:15
 */

#ifndef _MAINFORM_H
#define	_MAINFORM_H

#include "ui_mainForm.h"
#include "Pane.h"
#include "playListEntry.h"
#include <qt4/QtCore/QTimer>
#include <vector>
#include <map>

class mainForm : public QMainWindow {
    Q_OBJECT
public:
    mainForm();
    virtual ~mainForm();
    void onPlayEnd();
    
    static void playendcallback(){
        pSelf->onPlayEnd();
    }
    
public slots:
    void onAboutUS();
    void onAddFile();
    void onPlay();
    void onStop();
    void onPause();
    void onTick();
    void onDialChange(int value);
    
private:
    static mainForm * pSelf;
    Ui::mainForm widget;
    
    Pane * pPane;
    
    QTimer * timer;
    
    int min, second;
    
    vector< CueSheet > vSheet;
    
    vector< playListEntry > vplayListEntry;
    
};

#endif	/* _MAINFORM_H */
